package com.jcb.showcase.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.jcb.showcase.R;
import com.jcb.showcase.TestActivity;

public class InitialView 
//extends LinearLayout
extends RelativeLayout
{
	final TestActivity mainActivity ;
	Paint paint = new Paint();
	TextView tv ;
	
	@Override
    public void onDraw(Canvas canvas) {
        //setBackgroundColor(Color.BLUE);
        /*
        paint.setColor(Color.RED);
        paint.setTextSize(120);
        canvas.drawText("aaaaaa", 50, 150, paint);
        */        
    }
	
	public InitialView(Context context, final TestActivity mainActivity) {
		super(context);
		this.mainActivity = mainActivity ;
		
		RelativeLayout.LayoutParams bas = new RelativeLayout.LayoutParams(
                RelativeLayout.LayoutParams.WRAP_CONTENT,
                RelativeLayout.LayoutParams.WRAP_CONTENT);
        bas.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
		this.setBackgroundColor(Color.BLUE);
        tv = new TextView(context);
        tv.setText("Test");
        tv.setLayoutParams(bas);
        this.addView(tv);
	}


	
}


